<!--
 * @Author: ljc
 * @Date: 2024-08-06 13:46:34
 * @LastEditors: g05047
 * @LastEditTime: 2024-11-25 16:31:13
 * @Description: 区划和单位1标题宽度
-->
<template>
  <el-form-item v-if="treeType ==='ad'"
    :label="i18nt('designer.setting.adLabelWidth')">
    <el-input type="number"
      v-model="optionModel.adConfig.adLabelWidth"
      @input="inputNumberHandler"
      min="0"
      class="hide-spin-button"></el-input>
  </el-form-item>
  <el-form-item v-else
    :label="i18nt('designer.setting.agLabelWidth')">
    <el-input type="number"
      v-model="optionModel.agConfig.agLabelWidth"
      @input="inputNumberHandler"
      min="0"
      class="hide-spin-button"></el-input>
  </el-form-item>
</template>
<script>
import i18n from "@/utils/i18n"
import propertyMixin from "@/components/form-designer/setting-panel/property-editor/propertyMixin"
export default {
  name: "treeLabelWidth-editor",
  mixins: [i18n, propertyMixin],
  props: {
    designer: Object,
    selectedWidget: Object,
    optionModel: Object,
    treeType: String,
  },
}
</script>
<style scoped>
</style>
